import request from '@/utils/request'

export const listCombo = (search) =>
    request({
        url: '/tSetmeal',
        method: 'get',
        params: {
            name: search.name,
            orderStatus: search.status,
            offset: search.offset,
            limit: search.limit
        }
    })

export const getComboById = (id) =>
    request({
        url: '/tSetmeal/' + id,
        method: 'get'
    })

export const updateCombo = (checkItem) =>
    request({
        url: '/tSetmeal',
        method: 'put',
        data: checkItem
    })

export const saveCombo = (combo) =>
    request({
        url: '/tSetmeal',
        method: 'post',
        data: combo
    })